package com.cweb.admin.model.bbs.bbs_category_info.controller;

import com.cweb.admin.configuration.annotation.NoLoginCheck;
import com.cweb.admin.model.bbs.bbs_category_info.entity.BbsCategoryInfo;
import com.cweb.admin.model.bbs.bbs_category_info.service.BbsCategoryInfoService;
import com.cweb.framework.annotation.Remark;
import com.cweb.framework.pojo.BaseResponse;
import com.cweb.framework.pojo.CustomException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.cweb.framework.base.controller.BaseController;

/**
 * 论坛-分类信息 前端控制器
 * @author changfan
 */
@RestController
@RequestMapping("bbs/category")
public class BbsCategoryInfoController extends BaseController {
    @Autowired
    private BbsCategoryInfoService bbsCategoryInfoService;

    /**
     * 取得分类列表
     */
    @RequestMapping("list")
    @Remark(name = "取得分类列表", describe = "")
    @NoLoginCheck
    public BaseResponse list(BbsCategoryInfo param) throws CustomException {
        return new BaseResponse(bbsCategoryInfoService.getList(param));
    }
}

